// pages/events/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    activeIndex: 0,
    isLoading: false
  },
  changeIndex(e) {
    this.setData({
      activeIndex: e.mark.index,
    });
  },
  onEnd() {
    console.log('到底了');
  },
  onLoad() {
    console.log('刷新中', this.data.isLoading);
    setTimeout(() => {
      this.setData({
        isLoading: false
      })
    }, 2000);
  },
  fn1(e) {
    console.log(e);
  },
  fn2(e) {
    console.log(e);
  },
  fn3(e) {
    console.log(e);
  },
  fn4(e) {
    console.log(e);
  }
})